$(function() {
    $('.winner__slider').owlCarousel({
        margin: 30,
        loop: false,
        stagePadding: 50,
        nav: false,
        dots: false,
        autoplay: true,
        responsiveClass: true,
        responsive: {
            0: {
                items: 1,
            },
            600: {
                items: 1
            },
            1000: {
                items: 3,
            }
        }
    });
    $('.prompt__slider').owlCarousel({
        margin: 30,
        loop: true,
        dots: true,
        nav: false,
        navigation: false,
        autoplay: true,
        responsiveClass: true,
        responsive: {
            0: {
                items: 1
            },
            600: {
                items: 1
            },
            1000: {
                items: 3,
                dots: true
            }
        }
    });
    $('.hero__slider').owlCarousel({
        margin: 0,
        loop: true,
        dots: true,
        autoplay: true,
        nav: false,
        navigation: false,
        items: 1
    });

    $(window).scroll(function() {
        var sticky = $('header'),
            scroll = $(window).scrollTop();
        if (scroll >= 10) {
            sticky.addClass('fixed');
        } else {
            sticky.removeClass('fixed');
        }
        if (scroll >= 500) {
            $('.hero__download--sec-scroll').addClass('show')
        } else {
            $('.hero__download--sec-scroll').removeClass('show')
        }
    });
    $('.social__link').click(function() {
        $(this).parent().find('.social__submenu').toggleClass('active')
    });



});